package com.znsd.stu.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.znsd.entitys.Cwj_ClassInfo;
import com.znsd.entitys.GradeInfo;
import com.znsd.entitys.Cwj_SpecialtyInfo;
import com.znsd.stu.dao.Cwj_ClassDao;
import com.znsd.stu.service.Cwj_ClassService;

@Service
public class Cwj_ClassServiceImpl implements Cwj_ClassService{
	
	@Autowired
	private Cwj_ClassDao classDao;
	
	@Override
	public List<Cwj_ClassInfo> getlist() {
		return classDao.classlist();
	}

	@Override
	public int getcount() {
		return classDao.getcount();
	}


	@Override
	public Cwj_ClassInfo getById(Integer classId) {
		// TODO Auto-generated method stub
		return classDao.getById(classId);
	}

	@Override
	public void update(Cwj_ClassInfo classInfo, Integer teacherId, Integer specialtyId) {
		// TODO Auto-generated method stub
		classDao.classUpdate(classInfo.getClazz_id(),classInfo.getClazz_name(), classInfo.getTeacherId(), specialtyId);
	}

	@Override
	public List<Cwj_ClassInfo> getBySpe(Integer speId) {
		// TODO Auto-generated method stub
		return classDao.getBySpe(speId);
	}

	@Override
	public void delClass(Integer classId) {
		classDao.delClass(classId);
	}

	@Override
	public Cwj_ClassInfo getOrderBy() {
		// TODO Auto-generated method stub
		return classDao.getOrderBy();
	}

	@Override
	public List<Cwj_ClassInfo> getByTeacherId(Integer Id) {
		// TODO Auto-generated method stub
		return classDao.getByTeacherId(Id);
	}

	@Override
	public void addclass(String clazz_name, Date clazz_createtime, Integer teacher, Integer userId,
			Integer specialty_id) {
		// TODO Auto-generated method stub
		classDao.addclass(clazz_name, clazz_createtime, teacher, userId, specialty_id);
	}

	

}
